package factory;

public class Main {
    // 静态工厂，就是为了以后不用new 对象
    public static void main(String[] args) {
        Person person1 = PersonFactory.getInstance();
        person1.setName("张三");
        person1.setAge(10);
        System.out.println(person1);
    }
}
